﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
using VOL.Entity;
using VOL.Entity.SystemModels;

namespace VOL.WebApi.Controllers.MyTable
{
    [Entity(TableCnName = "预算转置视图", TableName = "Fk_yusuan_view_unpivot")]
    public class Fk_yusuan_view_unpivot : BaseEntity
    {

        [Key]
        [Display(Name = "y_id")]
        [Column(TypeName = "uniqueidentifier")]
        [Required(AllowEmptyStrings = false)]
        public Guid y_id { get; set; }


        /// <summary>
        ///年份
        /// </summary> 
        ///
        [Display(Name = "年份")]
        [Column(TypeName = "int")]
        public int gjahr { get; set; }

        /// <summary>
        ///科目
        /// </summary>
        [Display(Name = "科目")]
        [Column(TypeName = "varchar(10)")]
        public string racct { get; set; }

        /// <summary>
        ///成本中心
        /// </summary>
        [Display(Name = "成本中心")]
        [Column(TypeName = "varchar(10)")]
        public string rcntr { get; set; }

        /// <summary>
        ///月度
        /// </summary>
        [Display(Name = "月度")]
        [Column(TypeName = "int")]
        public int yue { get; set; }

        /// <summary>
        ///金额
        /// </summary>
        [Display(Name = "金额")]
        [Column(TypeName = "numeric")]
        public decimal? je { get; set; }
    }
}
